import { defineConfig } from "umi";
import routes from "./routes";
import PostcssPx2Rem from "postcss-pxtorem";
export default defineConfig({
  routes,
  alias: {
    "@a": "/src/assets",
  },

  extraPostCSSPlugins: [
    PostcssPx2Rem({
      rootValue: 75,
      propList: ["*"],
    }),
  ],

  npmClient: "pnpm",
  define: {
    "process.env": {
      NODE_ENV: "dev",
      UMI_ENV: "dev",
      UMI_BASE_URL: "/conner",
    },
  },

  dva: {},
  plugins: ["@umijs/plugins/dist/dva"],
});
